package org.gtiles.components.securityworkbench.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SwbAuthUser implements Serializable{
	private static final long serialVersionUID = -7857042133784567664L;

	private String swbUserId;
	private String userName;
	private String displayName;
	private long authTimeStamp;
	private String startpath;  // 登录后跳转的页面
	private Map<String, String> expandMap;	//拓展班级  update by yannis 2016-03-06
	private String roleCode;//角色编码
	private String idCode;//身份编码

	// 角色IDS
	private List<String> roleIdList = new ArrayList<String>();

	public SwbAuthUser(String swbUserId, String userName, String displayName) {
		this.swbUserId = swbUserId;
		this.userName = userName;
		this.displayName = displayName;
		this.authTimeStamp = System.currentTimeMillis();
		expandMap = new HashMap<String, String>();
	}

	public SwbAuthUser() {
		super();
	}

	public String getSwbUserId() {
		return swbUserId;
	}

	public void setSwbUserId(String swbUserId) {
		this.swbUserId = swbUserId;
	}

	public String getUserName() {
		return userName;
	}

	public String getDisplayName() {
		return displayName;
	}

	public long getAuthTimeStamp() {
		return authTimeStamp;
	}

	public String getEntityID() {
		return swbUserId;
	}

	public String getLoginID() {
		return userName;
	}

	public String getName() {
		return displayName;
	}

	public List<String> getRoleIdList() {
		return roleIdList;
	}

	public void setRoleIdList(List<String> roleIdList) {
		this.roleIdList = roleIdList;
	}

	public String getStartpath() {
		return startpath;
	}

	public void setStartpath(String startpath) {
		this.startpath = startpath;
	}

	public Map<String, String> getExpandMap() {
		return expandMap;
	}

	public void setExpandMap(Map<String, String> expandMap) {
		this.expandMap = expandMap;
	}

	public String getRoleCode() {
		return roleCode==null?"":roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getIdCode() {
		return idCode;
	}

	public void setIdCode(String idCode) {
		this.idCode = idCode;
	}
}
